//Author:Max Charnock
//Date: 10/02/2015
//Purpose: Takes the time each time it is called and calculated the FPS

class FpsCounter
{
protected:

	//current fps 
    int Current_fps;

	//tracks frames passed since last second
    int Frames_This_Second;

	//tracks time since last second
    float Time_Since_Last_Second;

public:

    // Constructor
    FpsCounter();

    // Update
    void Update(float msec);

    // Get fps
    unsigned int GetFPS() const
    {
        return Current_fps;
    }
};